<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>背景</title>
  <style>
    html {
      height: 2000px;
    }

    .box1 {
      width: 800px;
      height: 540px;
      background-color: #f0f;
      /* 背景图 */
      background-image: url(../素材/images/mogu01.png);
      /* 背景图不平铺 */
      background-repeat: no-repeat;
      /* 背景图位置 */
      background-position: top center;
    }

    .box2 {
      width: 320px;
      height: 320px;
      background-color: #0ff;
      background-image: url(../../素材/images/AI01.png);
      /* 背景图不平铺 */
      background-repeat: no-repeat;
      /* 背景缩放 contain 显示全 | cover 显示不全 | 百分比 */
      background-size: contain;
    }



    body {
      background-image: url(../../素材/images/AI01.png);
      background-repeat: no-repeat;
      background-position: center top;
      /* 背景图固定 */
      background-attachment: fixed;
    }
  </style>
</head>

<body>
  <!-- <div class="box1"></div> -->
  <!-- <div class="box2"></div> -->
</body>

</html>